package com.sweet.imserver.server;

import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.auth.PubSecKeyOptions;
import io.vertx.ext.auth.jwt.JWTAuth;
import io.vertx.ext.auth.jwt.JWTAuthOptions;

public class JwtAuthService {
  public final JWTAuth authProvider;

  public JwtAuthService(Vertx vertx) {
    this.authProvider = JWTAuth.create(vertx, new JWTAuthOptions()
        .addPubSecKey(new PubSecKeyOptions().setAlgorithm("HS256")
            .setBuffer("CJHs^@PvoXOacVi12J(z0w!cJXCLVOa")));
  }

}
